package edu.vt.ece.rt.benchmark.genome;

import java.util.HashMap;
import java.util.Random;

public class Gene {

    long length;
    String contents;
    HashMap<Integer, Integer> startBitmapPtr;
    
    public static char NUCLEOTIDE_ADENINE  = 'a';
    public static char NUCLEOTIDE_CYTOSINE  = 'c';
    public static char NUCLEOTIDE_GUANINE  = 'g';
    public static char NUCLEOTIDE_THYMINE  = 't';
    public static int NUCLEOTIDE_NUM_TYPE  = 4;

    public Gene(int length){
    	contents = "";
    	this.length = length;
    	startBitmapPtr = new HashMap<Integer, Integer>();

    }
    
    public static void gene_create(Gene genePtr, Random r) {
    	
        char nucleotides[] = {NUCLEOTIDE_ADENINE,
                NUCLEOTIDE_CYTOSINE,
                NUCLEOTIDE_GUANINE,
                NUCLEOTIDE_THYMINE,
            };
        

        long length = genePtr.length;
        String contents = genePtr.contents;
        
        for (int i = 0; i < length; i++) {
            contents = contents +
                nucleotides[r.nextInt() % NUCLEOTIDE_NUM_TYPE];
        }



    }

}
